function objFlash(urls,ids){
    var msg = [];

            msg.push('<object style="outline:none" align="middle" width="1" height="1" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" type="application/x-shockwave-flash" id="'+ids+'" style=""><param name="movie" value="'+urls+'"><param name="quality" value="high"><param name="wmode" value="transparent"><param name="allowNetworking" value="all"><param name="allowFullScreen" value="false"><param name="menu" value="true"><param name="allowScriptAccess" value="always">');
            msg.push('<embed width="1" height="1" id="'+ids+'" src="'+urls+'" allownetworking="all" wmode="transparent" quality="high" type="application/x-shockwave-flash" menu="true" allowfullscreen="false" allowscriptaccess="always" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" style="outline:none">');
            msg.push('</object>');
       
            document.body.innerHTML += msg.join('');    
}

window.onload = function(){
    objFlash('ad-flash.swf','tomasia');
}
